package org.example.samplespringbootprovider.service;

import com.heartunderblade.rpc.service.newService;

public class newServiceImpl implements newService {
    private String name="忍下心";

    public newServiceImpl(String name) {
        this.name = name;
    }

    @Override
    public String add(String name) {

        System.out.println("给的名字 "+ name);
        System.out.println("原名 "+ this.name);
        this.name = name;
        return name;
    }
}
